<?php 
/**
 * TomatoCMS
 * 
 * LICENSE
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-2.0.txt
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@tomatocms.com so we can send you a copy immediately.
 * 
 * @copyright	Copyright (c) 2009-2010 TIG Corporation (http://www.tig.vn)
 * @license		http://www.gnu.org/licenses/gpl-2.0.txt GNU GENERAL PUBLIC LICENSE Version 2
 * @version 	$Id: add.phtml 3032 2010-05-25 08:00:42Z huuphuoc $
 */
?>
<?php 
$this->headTitle($this->translator('order_tracking_history_page_title'));
$this->headScript()->appendFile($this->APP_STATIC_SERVER.'/js/jquery.validate/jquery.validate.min.js');
?>

<div class="grid_12 t_a_breadcump">
	<span><a href="<?php echo $this->url(array(), 'core_index_dashboard'); ?>"><?php echo $this->translator('menu_admin', 'core'); ?></a></span>
	<span><a href="<?php echo $this->url(array(), 'order_order_list'); ?>"><?php echo $this->translator('order_list_breadcump'); ?></a></span>
	<span><a href="<?php echo $this->url(array('order_id' => $this->order->order_id), 'order_order_view'); ?>"><?php echo $this->translator('order_view_breadcump'); ?></a></span>
	<span><?php echo $this->translator('order_tracking_history_breadcump'); ?></span>	
</div>

<div class="grid_12 t_a_bottom">
	<input type="button" value="<?php echo $this->translator('order_edit_btn_back');?>" onclick="window.location.href = '<?php echo $this->url(array('order_id' => $this->order_id), 'order_order_view'); ?>'"/>
</div>	

<div class="grid_12 t_a_bottom">
	<div class="grid_4 alpha t_a_line">
		<h2><?php echo $this->translator('order_edit_tracking_status'); ?></h2>
	</div>
	<div class="grid_3 t_a_line">
		<h2><?php echo $this->translator('order_tracking_date'); ?></h2>
	</div>
	<div class="grid_4 t_a_line">
		<h2><?php echo $this->translator('order_tracking_remark'); ?></h2>
	</div>	
</div>
<div class="grid_12">
	<?php if(count($this->orderTracking)):?>
	<?php foreach ($this->orderTracking as $row):?>
	<div class="clearfix t_a_box">
		<div class="grid_4 alpha">
			<div style="padding-left: 5px">				
				<?php echo $this->translator('order_'.$row->order_tracking_status);?>
				&nbsp;
			</div>
		</div>
		
		<div class="grid_3">
			<?php echo $row->order_tracking_date?>			
			&nbsp;
		</div>
		
		<div class="grid_4">			
			<?php echo $row->order_tracking_remark?>
			&nbsp;
		</div>		
		
	</div>
	<?php endforeach;?>
	<?php else:?>
		<?php echo $this->translator('tracking_history_not_found'); ?>
	<?php endif;?>
</div>

<script type="text/javascript">

$(document).ready(function() {
	
})	
</script>
